/// 响应主体内容
class WithdrawBankCardComboxDto {
  /// 银行卡用户姓名
  final String? accountName;
  /// 银行卡种类ID
  final int? bankCardTypeId;
  /// 银行卡种类名称
  final String? bankCardType;
  /// 银行卡ID
  final int? bankCardId;
  /// 银行卡账号
  final String? bankCard;
  /// 银行卡种类图片地址
  final String? iconUrl;

  WithdrawBankCardComboxDto({
    this.accountName,
    this.bankCardTypeId,
    this.bankCardType,
    this.bankCardId,
    this.bankCard,
    this.iconUrl,
  });

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    if (accountName != null) data['accountName'] = accountName;
    if (bankCardTypeId != null) data['bankCardTypeId'] = bankCardTypeId;
    if (bankCardType != null) data['bankCardType'] = bankCardType;
    if (bankCardId != null) data['bankCardId'] = bankCardId;
    if (bankCard != null) data['bankCard'] = bankCard;
    if (iconUrl != null) data['iconUrl'] = iconUrl;
    return data;
  }

  factory WithdrawBankCardComboxDto.fromJson(Map<String, dynamic> json) {
    return WithdrawBankCardComboxDto(
      accountName: json['accountName'],
      bankCardTypeId: json['bankCardTypeId'],
      bankCardType: json['bankCardType'],
      bankCardId: json['bankCardId'],
      bankCard: json['bankCard'],
      iconUrl: json['iconUrl'],
    );
  }
}